﻿namespace Bronze.Network
{
    using System;
    using System.Net.Sockets;

    public class SocketDisconnectedEventArgs
    {
        public int ConnectionId;
        public ClientConnection Connection;
        public Socket socket;
        public string Reason;

        public SocketDisconnectedEventArgs(ClientConnection connection,string reason)
        {
            this.ConnectionId = connection.ConnectionId;
            this.socket = connection.Socket;
            this.Connection = connection;
            this.Reason = reason;
        }

        public SocketDisconnectedEventArgs(ClientConnection connection)
            : this(connection,string.Empty)
        {
        }

    }
}

